Energy conservation management method, apparatus, and computer program product

ABSTRACT

An energy conservation management method includes selecting, by a policy server, a target scenario model from a plurality of scenario models based on a plurality of scenario attribute values of a target network, and configuring, by the policy server, a network device in the target network based on an energy conservation policy of the target scenario model. At least one of the plurality of scenario attribute values is an attribute value of a scenario attribute related to a network power consumption of the target network. The at least one of the plurality of scenario attribute values includes a plurality of attribute values of a corresponding scenario attribute, wherein each of the plurality of attribute values is collected at a different time from other attribute values of the plurality of attribute values that are collected at different times.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority to Chinese Patent Application No.201811210485.1, filed on Oct. 17, 2018, which is hereby incorporated byreference in its entirety.

TECHNICAL FIELD

This application relates to the field of communications technologies,and in particular, to an energy conservation management method, anapparatus, and a storage medium.

BACKGROUND

A plurality of network devices, such as a switch, a router, and anaccess point (AP), are deployed in a network. If these network devicesconstantly stay in a working state, but there is no terminal thataccesses the network, electric power is wasted.

In addition, if energy conservation management is performed manually ona network device in a specified network, massive workforces are alsoconsumed.

SUMMARY

In at least one embodiment, the present disclosure includes an energyconservation management method, an apparatus, and a computer programproduct. In at least one embodiment, the present disclosure resolves aproblem in other approaches for energy conservation management Accordingto at least one embodiment, an energy conservation management methodincludes: selecting, by a policy server, a target scenario model from aplurality of scenario models based on a plurality of scenario attributevalues of a target network, where at least one of the plurality ofscenario attribute values is an attribute value of a scenario attributerelated to a network power consumption of the target network, and atleast one of the plurality of scenario attribute values includes aplurality of attribute values of a corresponding scenario attribute,wherein each of the plurality of attribute values is collected at adifferent time from other attribute values of the plurality of attributevalues; and configuring, by the policy server, a network device in thetarget network based on an energy conservation policy of the targetscenario model.

In at least one some embodiment, the target scenario model correspondingto the target network is determined, to obtain an energy conservationpolicy suitable for a power consumption scenario of the target network.Therefore, in some embodiments, energy conservation management may beperformed automatically, thereby improving efficiency of energyconservation management performed on the target network compared withother approaches.

In at least one embodiment, each of the plurality of scenario modelscorresponds to one attribute list, and the one attribute list includes aplurality of scenario attribute value ranges; and the selecting thetarget scenario model from the plurality of scenario models based on theplurality of scenario attribute values of the target network includes:selecting, as the target scenario model from the plurality of scenariomodels, a scenario model having a maximum degree of matching with thetarget network, where a degree of matching the scenario model with thetarget scenario model is determined based on a quantity of matchedattribute values of the target scenario model, and the quantity ofmatched attribute values of the target scenario model is a quantity ofscenario attribute values of the plurality of scenario attribute valuesand are within a corresponding scenario attribute value range of theplurality of scenario attribute value ranges in the attribute list ofthe target scenario model.

In at least one some embodiment, an attribute list is configured foreach scenario model. In these embodiments, after the plurality ofscenario attribute values of the target network are determined, thetarget scenario model may be determined based on a degree of matchingbetween the plurality of scenario attribute values of the target networkand a plurality of attribute value ranges in each scenario model, sothat the determined target scenario model can accurately describe thepower consumption scenario of the target network, thereby improvingaccuracy in determining the target scenario model.

In at least one embodiment, a plurality of scenario attributescorresponding to the plurality of scenario attribute values include atleast the network power consumption of the target network, a quantity ofterminals accessing the target network, a traffic of the target network,or a quantity of network devices installed in each sub-area of acoverage area of the target network.

In some embodiments, the plurality of scenario attributes of the targetnetwork may include the foregoing content, to describe the powerconsumption scenario of the target network by using the scenarioattribute values of the target network.

In at least one embodiment, the energy conservation policy of the targetscenario model includes a plurality of energy conservation rules, eachof the plurality of energy conservation rules including an energyconservation condition and an energy conservation action. In someembodiments, the energy conservation condition in at least one of theplurality of energy conservation rules includes a time segment in a timeperiod, and the energy conservation condition is determined based on theat least one scenario attribute value.

In at least one some embodiment, the energy conservation policy of thetarget scenario model includes the plurality of energy conservationrules, and the energy conservation condition in the at least one of theplurality of energy conservation rules includes a time segment in a timeperiod, so that different energy conservation rules are configured forthe target network in different time segments, thereby improvingflexibility of energy conservation management on the target networkcompared with other approaches.

According to at least one embodiment, an energy conservation managementapparatus is provided, and the energy conservation management apparatusis configured to implement an action in the energy conservationmanagement method according to the at least one embodiment. The energyconservation management apparatus includes at least one module, and theat least one module is configured to implement the energy conservationmanagement method according to at least one embodiment.

According to at least one embodiment, an energy conservation managementapparatus is provided. In some embodiments, a the energy conservationmanagement apparatus includes a processor and a memory. The memory isconfigured to store a program that supports the energy conservationmanagement apparatus in performing the energy conservation managementmethod according to at least one embodiment, and store related data thatis used to implement the energy conservation management method accordingto at least one embodiment. The processor is configured to execute theprogram stored in the memory. In at least one embodiment, the energyconservation management apparatus may further include a communicationsbus, and the communications bus is configured to establish a connectionbetween the processor and the memory.

According to at least one embodiment, a computer readable storage mediumis provided. The computer readable storage medium stores an instruction,and when the instruction is run on a computer, the computer is enabledto perform the energy conservation management method according to atleast one embodiment.

According to at least one embodiment, a computer program product thatincludes an instruction is provided. When the computer program productis run on a computer, the computer is enabled to perform the energyconservation management method according to at least one embodiment.

Technical effects obtained in at least one embodiment are similar to thetechnical effects obtained by at least other embodiments, and aretherefore. not described herein again for brevity.

DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram of an energy conservation managementsystem according to an embodiment of the present disclosure;

FIG. 2 is a flowchart of an energy conservation management methodaccording to an embodiment of the present disclosure;

FIG. 3 is a schematic diagram of an energy conservation managementapparatus according to an embodiment of the present disclosure; and

FIG. 4 is a schematic diagram of another energy conservation managementapparatus according to an embodiment of the present disclosure.

DETAILED DESCRIPTION

Hereinafter, at least one embodiment of the present disclosure will bedescribed in detail with reference to the accompanying drawings.However, it is understood that the following description is notlimiting, and specific objectives, technical solutions, and/oradvantages of the present disclosure may be described below to simplifythe present disclosure, and are not limiting.

For a network deployed in any area, for example, a network deployed in asupermarket, a shopping mall, a hotel, or a stadium, various networkdevices are deployed in the network. Therefore, to help a terminalaccess the network at any time, these network devices constantly stay ina working state. As a result, power consumption of these network devicesis relatively high. Therefore, a study on an energy conservationmanagement method for performing energy conservation management on thesenetwork devices is carried out in the present disclosure, to reduceresource waste. The energy conservation management method provided inthe embodiments of the present disclosure is applied to the foregoingscenario. A sum of power consumption of the network devices in thenetwork is collectively referred to as network power consumption of thenetwork.

FIG. 1 is a schematic diagram of an energy conservation managementsystem according to an embodiment of the present disclosure. As shown inFIG. 1, the system 100 includes a policy server 101 and a plurality ofnetwork devices 102. The policy server 101 and each network device 102are connected with wires or wirelessly, to communicate with each other.

The plurality of network devices 102 are deployed in a target network.In some embodiments, the target network may be a network deployed in ahotel, a network deployed in a shopping mall, a network deployed in asupermarket, a network deployed in an office campus, or the like. Thepolicy server 101 is configured to determine an energy conservationpolicy for performing energy conservation management on the targetnetwork, and to configure each network device 102 based on thedetermined energy conservation policy.

During specific application, a controller for managing each networkdevice 102 may be deployed in the target network. In this example, thecontroller in the target network may determine the energy conservationpolicy, and configure each network device 102 based on the determinedenergy conservation policy. However, the present disclosure is notlimited to this embodiment of the present disclosure.

In addition, the network device 102 may be a switch, a router, an AP, orthe like; and the policy server 102 may be a server such as anintelligent management platform for analyzing data.

FIG. 2 is a flowchart of an energy conservation management methodaccording to an embodiment of the present disclosure. As shown in FIG.2, the energy conservation management method includes at least one ofthe following operations.

In operation 201, a policy server selects a target scenario model from aplurality of scenario models based on a plurality of scenario attributevalues of a target network, where at least one of the plurality ofscenario attribute values includes an attribute value of a scenarioattribute related to a network power consumption of the target network,and at least one of the plurality of scenario attribute values includesattribute values of a corresponding scenario attribute that arecollected at different times.

In the present disclosure, to perform energy conservation management onthe target network based on a power consumption scenario of the targetnetwork, the target scenario model corresponding to the target networkis determined based on the plurality of scenario attribute values of thetarget network.

In at least this embodiment of the present disclosure, operation 201 mayhave the following implementations.

In at least one implementation, a plurality of scenario models arepreset. In some embodiments, each scenario model corresponds to oneattribute list, and the one attribute list includes a plurality ofscenario attribute value ranges. In this example, operation 201 may bespecifically as follows: A scenario model having a maximum degree ofmatching with the target network is selected from the plurality ofscenario models as the target scenario model. A degree of matching thescenario model with the target scenario model is determined based on aquantity of matched attribute values of the target scenario model. Thequantity of matched attribute values of the target scenario model is aquantity of scenario attribute values of the plurality of scenarioattribute values and are within a corresponding scenario attribute valuerange of the plurality of scenario attribute value ranges in theattribute list of the target scenario model.

In some embodiments, each scenario attribute value range corresponds toone scenario attribute, and at least one of the plurality of scenarioattribute value ranges includes an attribute value range of acorresponding scenario attribute in at least one time segment includedin a time period. In some embodiments, at least one time segmentincluded in a time period may be daytime and/or night in a day, aworkday and/or a weekend in a week, or the like.

In some embodiments, the plurality of scenario attribute values of thetarget network are used to describe the power consumption scenario ofthe target network. In some embodiments, a plurality of scenarioattributes corresponding to the plurality of scenario attribute valuesof the target network include at least one of the following: the networkpower consumption of the target network, a quantity of terminalsaccessing the target network, a traffic of the target network, and aquantity of network devices installed in each sub-area of a coveragearea of the target network. In some embodiments, the plurality ofscenario attributes may further include other attributes. In someembodiments, during specific application, the plurality of scenarioattributes may be determined based on the power consumption scenario ofthe target network. Details are not described herein.

In some embodiments, the at least one of the plurality of scenarioattribute values includes the attribute values of the correspondingscenario attribute that are collected at different times. The differenttimes may be all hours or all days in a week, all hours or all days in amonth, all hours or all days in a year, or the like. In someembodiments, the network power consumption of the target network may bea sum of power consumption of network devices in the target network, maybe real-time power consumption of each network device, or may be ratedpower consumption of each network device. This is not specificallylimited in the present disclosure.

For example, in some embodiments, the plurality of scenario attributevalues include network power consumption of the target network in eachhour in a recent week, a quantity of terminals accessing the targetnetwork in each hour in the recent week, traffic of the target networkin each hour in the recent week, a quantity of APs installed on eachfloor in the coverage area of the target network, and the like. In someembodiments, for any preset scenario model such as a scenario model A,some scenario attribute value ranges in an attribute list of thescenario model A include attribute value ranges of a correspondingscenario attribute in daytime and at night. In this example, for any oneof the plurality of scenario attribute values, the quantity of terminalsaccessing the target network in each hour in the recent week is used asan example for description. In some embodiments, an average value ofquantities of terminals accessing the target network in daytime everyday may be calculated, and an average value of quantities of terminalsaccessing the target network at night every day may be calculated. Thenthe two average values are compared with ranges in the attribute list ofthe scenario model A that are of quantities of terminals accessing thetarget network in day time and at night. If the two average values bothfall within the ranges in the attribute list that are of the quantitiesof terminals accessing the target network in day time and at night, thescenario attribute values are determined as scenario attribute valuesmatching the scenario model A. A quantity of scenario attribute valuesthat are in the plurality of scenario attribute values and that matchthe scenario model A is a quantity of matched attribute values of thescenario model A.

In some embodiments, the attribute list of each of the plurality ofscenario models may be obtained in advance by the policy server throughbig data analysis. Specifically, for a specified network, where thespecified network may be a network in a shopping mall/supermarketscenario, a network in an office campus scenario, a network in a hotelscenario, or the like, at least one of data about time-varying networkpower consumption in the specified network, data about a time-varyingquantity of terminals accessing the network, or data about time-varyingtraffic of the specified network is collected. In some embodiments, ascenario model corresponding to the specified network is determinedbased on the collected data, and an attribute list is configured for thescenario model based on the collected data.

In some embodiments, the data about the time-varying network powerconsumption of the specified network may be determined by using aplurality of attribute values of the network power consumption of thenetwork that are collected at different times. In some embodiments, thedata about the time-varying quantity of terminals accessing thespecified network may be determined by using a plurality of attributevalues that are of the quantity of terminals accessing the network andthat are collected at different times. In some embodiments, the dataabout the time-varying traffic of the specified network may bedetermined based on a plurality of attribute values of the traffic ofthe network that are collected at different times.

For example, in some embodiments, if it is determined, based on thecollected data, that network power consumption, a quantity of terminals,and traffic of the specified network at a weekend are all higher thancorresponding network power consumption, a corresponding quantity ofterminals, and corresponding traffic of the specified network in aworkday, the scenario model corresponding to the specified network maybe set to a shopping mall/supermarket scenario model. In someembodiments, an attribute list configured for the shoppingmall/supermarket scenario model includes at least one of the following:two attribute value ranges of network power consumption respectively fora weekend and a workday, two attribute value ranges of a quantity ofaccessing terminals respectively for a weekend and a workday, or twoattribute value ranges of traffic of the target network respectively fora weekend and a workday.

In at least one embodiment, the attribute list of each of the pluralityof scenario models may be set manually by an administrator. Details arenot described herein.

In at least one implementation, a scenario recognition model is trainedin advance. In some embodiments, the scenario recognition modelrecognizes the power consumption scenario of the target network. In thisexample, operation 201 may be specifically as follows: The plurality ofscenario attribute values of the target network are input into thescenario recognition model; the scenario recognition model analyzes theplurality of scenario attribute values and outputs a plurality ofprobabilities that are in a one-to-one correspondence with the pluralityof scenario models, where the probability of each scenario model is usedto indicate a probability that the power consumption scenario of thetarget network belongs to the scenario model; and a scenario model witha greatest probability is selected from the plurality of scenario modelsas the target scenario model.

In some embodiments, the scenario recognition model is obtained inadvance by training a large quantity of training samples. In someembodiments, for each of the large quantity of training samples, thetraining sample is labeled with a corresponding scenario model. Thetraining sample may include at least one of the following: datadescribing time-varying network power consumption of a network, datadescribing a time-varying quantity of terminals accessing the network,data including time-varying traffic of the network, or a quantity ofnetwork devices installed in each sub-area of a coverage area of thenetwork. In some embodiments, the data about the time-varying networkpower consumption of the network may also be determined by using aplurality of attribute values of the network power consumption of thenetwork that are collected at different times. In some embodiments, thedata about the time-varying quantity of terminals accessing the networkmay also be determined by using a plurality of attribute values that areof the quantity of terminals accessing the network and that arecollected at different times. In some embodiments, t data about thetime-varying traffic of the network may also be determined based on aplurality of attribute values of the traffic of the network that arecollected at different times.

In the foregoing implementations, the plurality of scenario modelsinclude a shopping mall/supermarket scenario model, a hotel scenariomodel, an office campus scenario model, a stadium scenario model, ameeting scenario model, a data center scenario model, or the like. Thisis not specifically limited in these embodiments of the presentdisclosure.

In operation 202, the policy server configures a network device in thetarget network based on an energy conservation policy of the targetscenario model.

In some embodiments, operation 202 may be specifically as follows: Thepolicy server centrally performs energy conservation management onnetwork devices in the target network according to the energyconservation policy of the target scenario model. In at least oneembodiment, operation 202 includes the policy server sending the energyconservation policy of the target scenario model to a controller in thetarget network; and the controller centrally performing energyconservation management on network devices in the target networkaccording to the energy conservation policy of the target scenariomodel. In at least one embodiment, operation 202 includes the policyserver sending the energy conservation policy of the target scenariomodel to each network device in the target network; and each networkdevice performing energy conservation management on the network deviceaccording to the energy conservation policy of the target scenariomodel.

In at least this embodiment of the present disclosure, the energyconservation policy of the target scenario model may have the followingimplementations.

In at least a first implementation, to refine energy conservationmanagement performed on the target network based on the powerconsumption scenario of the target network, the energy conservationpolicy of the target scenario model may include a plurality of energyconservation rules. In some embodiments, each of the plurality of energyconservation rules includes an energy conservation condition and anenergy conservation action. In some embodiments, an energy conservationcondition in at least one of the plurality of energy conservation rulesincludes a time segment in a time period. In other words, the energyconservation condition in the at least one of the plurality of energyconservation rules includes a time segment condition. In this way,different energy conservation management may be performed on the targetnetwork in different time segments, to improve flexibility of energyconservation management on the target network.

For example, in some embodiments, the target scenario model is ashopping mall/supermarket scenario model, and the energy conservationpolicy of the target scenario model includes four energy conservationrules, which are respectively a first energy conservation rule, a secondenergy conservation rule, a third energy conservation rule, and a fourthenergy conservation rule. An energy conservation condition included inthe first energy conservation rule is daytime of a workday, an energyconservation condition included in the second energy conservation ruleis night of a workday, an energy conservation condition included in thethird energy conservation rule is daytime of a weekend, and an energyconservation condition included in the fourth energy conservation ruleis night of a weekend. In some embodiments, to be specific, for theshopping mall/supermarket scenario model, different energy conservationactions are set for daytime of a workday, night of a workday, daytime ofa weekend, and nights of a weekend, to perform different energyconservation management in different time segments.

In some embodiments, the energy conservation condition including a timesegment in a time period is determined based on at least one scenarioattribute value. In some embodiments, the at least one scenarioattribute value means that the scenario attribute value includes aplurality of attribute values of a corresponding scenario attribute thatare collected at different times. In some embodiments, when differentenergy conservation management is performed on the target network indifferent time segments, time segment conditions included in some energyconservation conditions are determined based on a plurality of attributevalues that are of some scenario attributes and that are collected atdifferent times. In some embodiments, an energy conservation rule may befurther configured flexibly based on an actual situation of the targetnetwork.

For example, in some embodiments, when the target network is a networkdeployed in a shopping mall/supermarket A, for the scenario attribute“the quantity of terminals accessing the target network”, a scenarioattribute value “a plurality of attribute values that are of thequantity of terminals accessing the target network and that arecollected at different times” is collected. A result indicates that thequantity of terminals accessing the target network separately presentsdifferent features in daytime and night of a workday and daytime andnight of a weekend. Therefore, the energy conservation policy configuredfor the target network may include the four energy conservation rules.

Moreover, in some embodiments, in addition to including the time segmentcondition, the energy conservation condition in the energy conservationrule may also include a parameter threshold condition. For example, insome embodiments, the energy conservation condition included in thefirst energy conservation rule may be that a corresponding quantity ofaccessed terminals in daytime of a workday is less than a threshold 200.In some embodiments, the parameter threshold condition may be preset, orcertainly may be determined based on some scenario attribute values ofthe target network. Details are not described herein.

In at least a second implementation, to improve efficiency of energyconservation management, the energy conservation policy may not berefined. In this example, in some embodiments, the energy conservationpolicy of the target scenario model may include an energy conservationcondition and an energy conservation action corresponding to the energyconservation condition.

In the foregoing implementations, if the policy server sends the energyconservation policy of the target scenario model to each network devicein the target network, each network device performs energy conservationmanagement on the network device according to the energy conservationpolicy of the target scenario model. In this example, for any networkdevice in the target network, the policy server sends, to the networkdevice, an energy conservation action and a corresponding energyconservation condition that are related to the network device in theenergy conservation policy. After receiving the related energyconservation condition and energy conservation action, the networkdevice performs the corresponding energy conservation action based onthe energy conservation condition.

In some embodiments, if the energy conservation policy of the targetscenario model is the energy conservation policy in the firstimplementation, there may be a plurality of energy conservation actionsand corresponding energy conservation conditions that are related to thenetwork device in the energy conservation policy, and each energyconservation condition includes a time segment condition or includes atime segment condition and a parameter threshold condition. In thisexample, an implementation in which the network device performs thecorresponding energy conservation action based on the energyconservation condition is as follows: The network device determines anenergy conservation condition in the plurality of energy conservationconditions that is met by a current state; and if the current statemeets an energy conservation condition A in the plurality of energyconservation conditions, the network device performs an energyconservation action corresponding to the energy conservation conditionA; or if the current state meets none of the plurality of energyconservation conditions, the network device does not perform an energyconservation operation. Subsequently, the process continues to beperformed periodically.

In some embodiments, if the energy conservation condition includes atime segment condition and a parameter threshold condition, animplementation in which the network device determines whether thecurrent state meets the energy conservation condition A is as follows:The network device simultaneously determines whether a current timemeets the time segment condition in the energy conservation condition Aand whether a corresponding parameter meets the parameter thresholdcondition in the energy conservation condition A. If yes, it indicatesthat the current state meets the energy conservation condition A.

For example, in some embodiments, the target scenario model is ashopping mall/supermarket scenario model, the network device is an AP,and energy conservation actions and corresponding energy conservationconditions that are related to the network device in the energyconservation policy include a first energy conservation condition and afirst energy conservation action; and a second energy conservationcondition and a second energy conservation action. The first energyconservation condition includes that a quantity of terminals accessingthe target network at a weekend is less than a first quantity threshold,and the first energy conservation action includes disabling someantennas. The second energy conservation condition includes that aquantity of terminals accessing the target network in a workday is lessthan a second quantity threshold, and the second energy conservationaction includes disabling the network device. In this example, afterreceiving the energy conservation action and the corresponding energyconservation condition that are related to the network device in theenergy conservation policy, the AP determines whether a current statemeets the first energy conservation condition or the second energyconservation condition; and if the current state meets the first energyconservation condition, the AP performs the first energy conservationaction; or if the current state meets the second energy conservationcondition, the AP performs the second energy conservation action.Subsequently, the operation is performed periodically.

If the energy conservation policy of the target scenario model is theenergy conservation policy in the second implementation, there is oneenergy conservation action and one corresponding energy conservationconditions that are related to the network device in the energyconservation policy, and the energy conservation condition includes atime segment condition or includes a time segment condition and aparameter threshold condition. In this example, in some embodiments, animplementation in which the network device performs the correspondingenergy conservation action based on the energy conservation condition isas follows: The network device determines whether a current state meetsthe energy conservation condition; if the current state meets the energyconservation condition, the network device performs the energyconservation action. In this example, the network device enters anenergy conservation state. Subsequently, whether the current state meetsthe energy conservation condition is determined periodically. If thecurrent state still meets the energy conservation condition, nooperation is performed. If the current state does not meet the energyconservation condition, execution of the energy conservation action isstopped, and the network device enters a wakeup state.

For example, in some embodiments, the target scenario model is ashopping mall/supermarket scenario model, the network device is an AP,and an energy conservation action and a corresponding energyconservation condition that are related to the network device in theenergy conservation policy include a third energy conservation conditionand a third energy conservation action. The third energy conservationcondition includes that a quantity of terminals accessing the targetnetwork at night is less than a third quantity threshold, and the thirdenergy conservation action includes disabling some antennas. In thisexample, after receiving the energy conservation action and thecorresponding energy conservation condition that are related to thenetwork device in the energy conservation policy, the AP determineswhether a current state meets the third energy conservation condition;and if the current state meets the third energy conservation condition,the AP performs the third energy conservation action. Subsequently, theoperation is performed periodically.

Moreover, the energy conservation condition in at least this embodimentof the present disclosure may further include whether someone enters thecoverage area of the target network. In this example, whether someoneenters the coverage area may be detected by using data collected by acamera deployed in the coverage area of the target network. If it isdetected that no one enters the coverage area, the energy conservationaction corresponding to the energy conservation condition is performed.In this example, the network device enters an energy conservation state.If it is subsequently detected again that someone enters the coveragearea, execution of the energy conservation action is stopped. In thisway, the network device enters a wakeup state.

The energy conservation policy provided in at least this embodiment ofthe present disclosure is described below by using examples. Certainly,the following content constitutes no limitation on the energyconservation policy provided in at least this embodiment of the presentdisclosure.

For example, in some embodiments, for a shopping mall/supermarketscenario model, an energy conservation policy that is set may include atleast one of the following items:

1. An AP and/or a switch are/is scheduled to power off at night. In thisexample, if the AP and the switch supply power to a terminal connectedto the AP and the switch in a power over Ethernet (PoE) manner, afterthe AP and the switch are powered off, the terminal connected to the APand the switch is also disabled correspondingly.

2. An AP and/or a switch work/works a minimum power consumption state atnight, or the AP and/or the switch may be switched between a normalstate and an energy conservation state by using a management instructioninitiated by an administrator.

3. A quantity of antennas, power, and the like of an AP are adjustedbased on a quantity of accessed terminals or a traffic status.

In some embodiments, for an office campus scenario model, an energyconservation policy that is set may include at least one of thefollowing items:

1. A wired interface of an edge access switch and a PoE port of an APare disabled as scheduled, and a PoE port and a data communications portof an AP in a corresponding area are enabled by using a managementinstruction based on a floor location.

2. An edge access switch works at a minimum power consumption state atnight, or the edge access switch is switched between a normal state andan energy conservation state by using a management instruction.

3. A port of a switch chooses to enter a sleep mode or a wakeup statebased on a port traffic status.

In some embodiments, for a stadium scenario model, an energyconservation policy that is set may include at least one of thefollowing items:

1. A radio frequency antenna of an AP is automatically enabled ordisabled based on a quantity of accessed terminals and/or traffic, tosave energy.

2. A photographing area location of a camera is associated with an AP,an image collected by the camera is analyzed to learn a crowd density ina specified area, and an AP in a corresponding area is automaticallyenabled or disabled based on the crowd density.

In some embodiments, for a data center scenario model, an energyconservation policy that is set may be as follows: Based on a featurethat traffic of a data center is reduced at night but the data centerperforms a backup operation, or another feature, some routers may bedisabled at night, so that as many data flows as possible share a samepath, and traffic is centralized at some nodes and ports. In this way,resources of other nodes and ports may be released, so that a networkdevice or a port enters an energy conservation state or a sleep state.In some embodiments, all the routers are restored to a normal workingstate again during work time.

In addition, in at least this embodiment of the present disclosure, forany network device, in addition to an operation on the network deviceand/or an operation on another network device connected to the networkdevice, energy conservation actions performed by the network device mayinclude an operation on another terminal connected to the networkdevice. For example, in a meeting scenario, a network device may controla peripheral terminal connected to the network device to perform anenergy conservation operation. The peripheral terminal may be a terminalsuch as a printer or a projector.

Specifically, when these peripheral terminals are connected to a switchor an AP in a PoE manner, the switch or the AP is referred to as a powersupply device, and the peripheral devices are referred to as powereddevices. The power supply device supplies power by using a PoE port, thepowered devices receive power by using the PoE port, and the powersupply device and the powered devices transmit data to each other byusing a data communications port. In this example, the switch or the APmay be controlled to disable the PoE port, so that these peripheralterminals passively enter a sleep state. Alternatively, the switch orthe AP may be controlled to disable the data communications port. Whenthese peripheral terminals detect that there is no traffic passingthrough the data communications port, these peripheral terminalsautomatically power off, to enter a sleep state.

In addition, if these peripheral terminals are directly connected to thecontroller in the target network, when performing an energy conservationaction, the controller may directly instruct the peripheral terminals topower off or enter a sleep mode.

Moreover, if a single AP is deployed in the target network, the singleAP may perform energy conservation management based on the determinedenergy conservation policy. In at least one embodiment, if the targetnetwork includes a plurality of APs, when there is no one accessing thetarget network or in a non-working period, the controller may select anAP at a personnel entry or a key channel port as a beacon AP, and thecontroller instructs other APs to enter a sleep state, for example,disabling some antennas and/or some modules. When the beacon APdiscovers that there is an authorized person accessing the targetnetwork, or detects, by using an electromagnetic wave change, thatsomeone enters a corresponding area, the beacon AP instructs thecontroller to wake up an adjacent AP, so that the AP enters a workingstate.

In addition, in this embodiment of the present disclosure, an energyconservation action may be a module-level energy conservation action, anetwork device-level energy conservation action, or a network-levelenergy conservation action. In some embodiments, the module-level energyconservation action includes some modules in a network device performingan energy conservation action, and other modules working normally. Insome embodiments, the network device-level energy conservation actionmeans that a network device entirely performs an energy conservationaction. In some embodiments, the network-level energy conservationaction means that all network devices in a network perform an energyconservation action performed.

For example, in some embodiments, the module-level energy conservationaction includes that an Ethernet interface, a radio frequencyidentification (RFID)/Bluetooth/ZigBee module, or the like enters anenergy conservation mode when there is no communication. In someembodiments, the energy conservation mode may be an energy efficientethernet (EEE) mode. Alternatively, in some embodiments, themodule-level energy conservation action may include that a multi-antennasystem of a network device, such as an AP, disables some antennas oradjust transmit power consumption when a quantity of accessed terminalsor traffic is less than a particular threshold.

In some embodiments, the network device-level energy conservation actionincludes that a switch and/or an AP enter/enters a sleep state whenthere is no accessed terminal or there is no traffic. In someembodiments, the network-level energy conservation action includes thata controller deployed in a network controls each network device toperform energy conservation management, to implement an entirenetwork-level energy conservation management.

In the present disclosure, the target scenario model corresponding tothe target network is determined, to obtain an energy conservationpolicy suitable for a power consumption scenario of the target network.Therefore, energy conservation management may be performedautomatically, thereby improving efficiency of energy conservationmanagement performed on the target network compared to other approaches.

FIG. 3 shows an energy conservation management apparatus according to anembodiment of the present disclosure. As shown in FIG. 3, the apparatus300 includes:

a selection module 301, configured to perform operation 201 in theembodiment of FIG. 2; and

a configuration module 302, configured to perform operation 202 in theembodiment of FIG. 2.

In at least one embodiment, each of the plurality of scenario modelscorresponds to one attribute list, and the one attribute list includes aplurality of scenario attribute value ranges; and the selection module301 is specifically configured to:

select, as the target scenario model from the plurality of scenariomodels, a scenario model having a maximum degree of matching with thetarget network, where a degree of matching the scenario model with thetarget scenario model is determined based on a quantity of matchedattribute values of the target scenario model, and the quantity ofmatched attribute values of the target scenario model is a quantity ofscenario attribute values of the plurality of scenario attribute valuesand are within a corresponding scenario attribute value range in anattribute list of the target scenario model.

In at least one embodiment, a plurality of scenario attributescorresponding to the plurality of scenario attribute values include atleast one of the following: the network power consumption of the targetnetwork, a quantity of terminals accessing the target network, a trafficof the target network, or a quantity of network devices installed ineach sub-area of a coverage area of the target network.

In at least one embodiment, the energy conservation policy of the targetscenario model includes a plurality of energy conservation rules, eachof the plurality of energy conservation rules includes an energyconservation condition and an energy conservation action, an energyconservation condition in at least one of the plurality of energyconservation rules includes a time segment in a time period, and theenergy conservation condition including a time segment in a time periodthat is determined based on at least one scenario attribute value.

In at least one embodiment of the present disclosure, the targetscenario model corresponding to the target network is determined, toobtain an energy conservation policy suitable for a power consumptionscenario of the target network. Therefore, energy conservationmanagement of at least one embodiment of the present disclosure isperformed automatically, thereby improving efficiency of energyconservation management performed on the target network compared withother approaches.

When the energy conservation management apparatus provided in at leastthe foregoing embodiment performs energy conservation management,division of the foregoing function modules is merely used as an examplefor illustration. In some embodiments, the foregoing functions may beallocated to different function modules and implemented based on arequirement, that is, an inner structure of a device is divided intodifferent function modules to complete all or some of the functionsdescribed above. In some embodiments, the energy conservation managementapparatus provided in the foregoing embodiments and the embodiments ofthe energy conservation management method belong to a same concept. Fora specific implementation process thereof, refer to the methodembodiment. Details are not described herein again.

It should be understood that the energy conservation managementapparatus provided in at least one embodiment of the present disclosuremay be implemented by using an application-specific integrated circuit(ASIC) or a programmable logic device (PLD). The PLD may be a complexprogrammable logical device (CPLD), a field-programmable gate array(FPGA), generic array logic (GAL), or any combination thereof. Inaddition, the energy conservation management method described in theforegoing embodiment may be implemented by software. In this example,the energy conservation management apparatus and the modules of theenergy conservation management apparatus may also be referred to assoftware portions or modules.

In addition, the energy conservation management apparatus 300 providedin this embodiment of the present disclosure may correspondingly performthe energy conservation management method described in the embodimentsof the present disclosure. Moreover, the foregoing and other operationsand/or functions of the modules in the energy conservation managementapparatus 300 are respectively intended to implement correspondingprocesses in the energy conservation management method described in theforegoing embodiment. For brevity, details are not described hereinagain. In other words, the foregoing modules may be integrated into thepolicy server shown in FIG. 1, to implement the energy conservationmanagement method provided in the foregoing embodiment.

FIG. 4 shows another energy conservation management apparatus accordingto an embodiment of the present disclosure. The policy server shown inFIG. 1 may be implemented by using the energy conservation managementapparatus shown in FIG. 4. As shown in FIG. 4, the apparatus 400includes at least one processor 401, a communications bus 402, a memory403, and at least one communications interface 404.

The processor 401 may be a general-purpose central processing unit(CPU), a microprocessor, an ASIC, or one or more integrated circuitsconfigured to control program execution of solutions of the presentdisclosure.

The communications bus 402 may include a channel for transferringinformation between the components in apparatus 400.

In some embodiments, the memory 403 may be a read-only memory (ROM) oranother type of static storage device that can store static informationand instructions, or a random access memory (RAM) or another type ofdynamic storage device that can store information and instructions; ormay be an electrically erasable programmable read-only memory (EEPROM),an optical disk, a magnetic disk storage medium or another magneticstorage device, or any other media that can be accessed by a computerand that can be configured to carry or store expected program codehaving an instruction or data structure form. However, other variationsare within the scope of the present disclosure and are not limitedthereto. For example, in some embodiments, memory 403 is not integratedwith processor 403, but is connected to the processor 401 by using thecommunications bus 402. Alternatively, in some embodiments, the memory403 may be integrated together with the processor 401.

The communications interface 404 is configured to use any apparatus suchas a transceiver to communicate with another device or communicationsnetwork, for example, an Ethernet, a radio access network (RAN), or awireless local area network (WLAN).

In some embodiments, a computer device may include a plurality ofprocessors, for example, a processor 401 and a processor 405 shown inFIG. 4. Each of the processors may be a single-core processor or may bea multi-core processor. The processor herein may be one or more devices,circuits, and/or processing cores for processing data (for example, acomputer program instruction).

In some embodiments, the computer device may further include an outputdevice 406 and an input device 407. The output device 406 communicateswith the processor 401, and may display information in a plurality ofmanners. For example, the output device 406 may be a liquid crystaldisplay (LCD), a light emitting diode (LED) display device, a cathoderay tube (CRT) display device, a projector (projector), or the like. Theinput device 407 communicates with the processor 405, and may receiveuser input in a plurality of manners. For example, the input device 407may be a mouse, a keyboard, a touchscreen device, a sensor device, orthe like.

The computer device may be a general-purpose computer device or adedicated computer device. In some embodiments, the computer device maybe a desktop computer, a portable computer, a network server, a palmtopcomputer (PDA), a mobile phone, a tablet computer, a wireless terminaldevice, a communications device, or an embedded device. A type of thecomputer device is not limited by the embodiments of the presentdisclosure.

The memory 403 is configured to store program code for executing the atleast one operation or method of the present disclosure, and theexecution is controlled by the processor 401. The processor 401 isconfigured to execute the program code stored in the memory 403. Theprogram code may include one or more software portions or modules.

All or some of the foregoing embodiments may be implemented by usingsoftware, hardware, or a combination thereof. When software is used toimplement the embodiments, the embodiments may be implemented completelyor partially in a form of a computer program product. The computerprogram product includes one or more computer instructions. When thecomputer instructions are loaded and executed on a computer, theprocesses or functions according to the embodiments of the presentdisclosure are all or partially generated. The computer may be ageneral-purpose computer, a dedicated computer, a computer network, oranother programmable apparatus. The computer instructions may be storedin a computer-readable storage medium or may be transmitted from acomputer-readable storage medium to another computer-readable storagemedium. For example, the computer instructions may be transmitted from awebsite, computer, server, or data center to another website, computer,server, or data center in a wired (for example, a coaxial cable, anoptical fiber, or a twisted pair) or wireless (for example, infrared,radio, or microwave) manner. The computer-readable storage medium may beany usable medium accessible by a computer, or a data storage device,such as a server or a data center, integrating one or more usable media.The usable medium may be a magnetic medium (for example, a floppy disk,a hard disk, or a magnetic tape), an optical medium (for example, anoptical disc), a semiconductor medium (for example, a solid state drive(SSD)), or the like.

A person of ordinary skill in the art may understand that all or some ofthe operations of the embodiments may be implemented by hardware or aprogram instructing related hardware. The program may be stored in acomputer-readable storage medium. The computer-readable storage mediummay be a read-only memory, a magnetic disk, an optical disc, or thelike.

The foregoing descriptions are descriptions of some embodiments providedin the present disclosure, but are not intended to limit the scope ofthe present. One of ordinary skill in the art would understand thatvariations, modifications, equivalent replacements, improvements thereofor the like can be made without departing from the scope and spirit ofthe present disclosure, and and shall fall within the scope of thepresent disclosure.

What is claimed is:
 1. An energy conservation management method, whereinthe method comprises: selecting, by a policy server, a target scenariomodel from a plurality of scenario models based on a plurality ofscenario attribute values of a target network, wherein at least one ofthe plurality of scenario attribute values is an attribute value of ascenario attribute related to a network power consumption of the targetnetwork, and the at least one of the plurality of scenario attributevalues comprises: a plurality of attribute values of a correspondingscenario attribute, wherein each of the plurality of attribute values iscollected at a different time from other attribute values of theplurality of attribute values; configuring, by the policy server, anetwork device in the target network based on a plurality of energyconservation rules included in an energy conservation policy of thetarget scenario mode; wherein each of the plurality of scenario modelscorresponds to one attribute list, and the attribute list comprises aplurality of scenario attribute value ranges; wherein the selecting thetarget scenario model from the plurality of scenario models based on theplurality of scenario attribute values of the target network comprises:selecting, as the target scenario model from the plurality of scenariomodels, a scenario model having a maximum degree of matching with thetarget network, wherein a degree of matching of the target scenariomodel is determined based on a quantity of matched attribute values ofthe target scenario model, and the quantity of matched attribute valuesof the target scenario model is a quantity of scenario attribute valuesof the plurality of scenario attribute values of the target network andthat fall within a corresponding scenario attribute value range in anattribute list of the target scenario model, wherein the degree ofmatching when selecting the target scenario model from the plurality ofscenario models means a degree of matching between the plurality ofscenario attribute values of the target network and the plurality ofattribute value ranges in each scenario model; and wherein the pluralityof scenario attribute values of the target network correspond toscenario attributes comprising at least: the network power consumptionof the target network, a quantity of terminals accessing the targetnetwork, a traffic of the target network, and a quantity of the networkdevices installed in each sub-area of a coverage area of the targetnetwork.
 2. The method according to claim 1, wherein an energyconservation condition in at least one of the plurality of energyconservation rules comprises a time segment in a time period determinedbased on the at least one of the plurality of scenario attribute values.3. The method according to claim 1, wherein the configuring the networkdevice in the target network based on the plurality of energyconservation rules included in the energy conservation policy of thetarget scenario model comprises: configuring an energy state of at leastone port of the network device, wherein the configuring the energy stateof the at least one port of the network device comprises disabling orenabling a Power over Ethernet (PoE) port.
 4. The method according toclaim 1, wherein the configuring the network device in the targetnetwork based on the plurality of energy conservation rules included inthe energy conservation policy of the target scenario model comprises:configuring an energy state of at least one port of the network device,wherein the configuring the energy state of the at least one port of thenetwork device comprises disabling or enabling a data communicationsport.
 5. The method according to claim 1, wherein the configuring thenetwork device in the target network based on the plurality of energyconservation rules included in the energy conservation policy of thetarget scenario model comprises: configuring an energy state of at leastone port of the network device, wherein the configuring the energy stateof the at least one port of the network device comprises centralizingnetwork traffic through one port and disabling at least another port. 6.A policy server, wherein the policy server comprises: a memoryconfigured to store computer executable instructions, and a processorcoupled to the memory, wherein the processor is configured to executethe computer executable instructions for: selecting a target scenariomodel from a plurality of scenario models based on a plurality ofscenario attribute values of a target network, wherein at least one ofthe plurality of scenario attribute values is an attribute value of ascenario attribute related to a network power consumption of the targetnetwork, and the at least one of the plurality of scenario attributevalues comprises: a plurality of attribute values of a correspondingscenario attribute, wherein each of the plurality of attribute values iscollected at a different time from other attribute values of theplurality of attribute values; configuring a network device in thetarget network based on a plurality of energy conservation rulesincluded in an energy conservation policy of the target scenario model;wherein each of the plurality of scenario models corresponds to oneattribute list, and the attribute list comprises a plurality of scenarioattribute value ranges; wherein the selecting the target scenario modelfrom the plurality of scenario models based on the plurality of scenarioattribute values of the target network comprises: selecting, as thetarget scenario model from the plurality of scenario models, a scenariomodel having a maximum degree of matching with the target network,wherein a degree of matching of the target scenario model is determinedbased on a quantity of matched attribute values of the target scenariomodel, and the quantity of matched attribute values of the targetscenario model is a quantity of scenario attribute values of theplurality of scenario attribute values of the target network and thatfall within a corresponding scenario attribute value range in anattribute list of the target scenario model, wherein the degree ofmatching when selecting the target scenario model from the plurality ofscenario models means a degree of matching between the plurality ofscenario attribute values of the target network and the plurality ofattribute value ranges in each scenario model; and wherein the pluralityof scenario attribute values of the target network correspond toscenario attributes comprising at least: the network power consumptionof the target network, a quantity of terminals accessing the targetnetwork, a traffic of the target network, and a quantity of the networkdevices installed in each sub-area of a coverage area of the targetnetwork.
 7. The policy server according to claim 6, wherein theconfiguring the network device in the target network based on theplurality of energy conservation rules included in the energyconservation policy of the target scenario model comprises: configuringan energy state of at least one port of the network device, wherein theconfiguring the energy state of the at least one port of the networkdevice comprises disabling or enabling a Power over Ethernet (PoE) port.8. The policy server according to claim 6, wherein the configuring thenetwork device in the target network based on the plurality of energyconservation rules included in the energy conservation policy of thetarget scenario model comprises: centralizing traffic at some nodes andports, wherein the centralizing the traffic at some nodes and portscomprises disabling or enabling a data communications port.
 9. Thepolicy server according to claim 6, wherein the configuring the networkdevice in the target network based on the plurality of energyconservation rules included in the energy conservation policy of thetarget scenario model comprises: centralizing traffic at some nodes andports, wherein the centralizing the traffic at some nodes and portscomprises centralizing network traffic through one port and disabling atleast another port.
 10. A computer program product, comprising anon-transitory, computer-readable storage medium containing instructionstherein which, when executed by a processor, cause the processor to:select a target scenario model from a plurality of scenario models basedon a plurality of scenario attribute values of a target network, whereinat least one of the plurality of scenario attribute values is anattribute value of a scenario attribute related to a network powerconsumption of the target network, and the at least one of the pluralityof scenario attribute values comprises: a plurality of attribute valuesof a corresponding scenario attribute, wherein each of the plurality ofattribute values is collected at a different time from other attributevalues of the plurality of attribute values; configure a network devicein the target network based on a plurality of energy conservation rulesincluded in an energy conservation policy of the target scenario model;wherein each of the plurality of scenario models corresponds to oneattribute list, and the attribute list comprises a plurality of scenarioattribute value ranges; wherein the select a target scenario model fromthe plurality of scenario models based on the plurality of scenarioattribute values of the target network comprises: select, as the targetscenario model from the plurality of scenario models, a scenario modelhaving a maximum degree of matching with the target network, wherein adegree of matching of the target scenario model is determined based on aquantity of matched attribute values of the target scenario model, andthe quantity of matched attribute values of the target scenario model isa quantity of scenario attribute values of the plurality of scenarioattribute values of the target network and that fall within acorresponding scenario attribute value range in an attribute list of thetarget scenario model, wherein the degree of matching when selecting thetarget scenario model from the plurality of scenario models means adegree of matching between the plurality of scenario attribute values ofthe target network and the plurality of attribute value ranges in eachscenario model; and wherein the plurality of scenario attribute valuesof the target network correspond to scenario attributes comprising atleast: the network power consumption of the target network, a quantityof terminals accessing the target network, a traffic of the targetnetwork, and a quantity of the network devices installed in eachsub-area of a coverage area of the target network.
 11. The computerprogram product according to claim 10, wherein the configure the networkdevice in the target network based on the plurality of energyconservation rules included in the energy conservation policy of thetarget scenario model comprises: centralizing traffic at some nodes andports, wherein the centralizing the traffic at some nodes and portscomprises disabling or enabling a Power over Ethernet (PoE) port. 12.The computer program product according to claim 10, wherein theconfigure the network device in the target network based on theplurality of energy conservation rules included in the energyconservation policy of the target scenario model comprises: centralizingtraffic at some nodes and ports, wherein the centralizing the traffic atsome nodes and ports comprises disabling or enabling a datacommunications port.
 13. The computer program product according to claim10, wherein the configure the network device in the target network basedon the plurality of energy conservation rules included in the energyconservation policy of the target scenario model comprises: centralizingtraffic at some nodes and ports, wherein the centralizing the traffic atsome nodes and ports comprises centralizing network traffic through oneport and disabling at least another port.